package com.zilla.android.zillacore.libzilla.db.util;

import java.util.ArrayList;

/**
 * 表信息缓存记录
 * @author zilla
 *
 */
public class TableHolder {

	public static ArrayList<String> tableList = new ArrayList<String>();
	
	/**
	 * 添加表信息到缓存中
	 * @param tableName
	 */
	public static void addTable(String tableName){
		if(tableList.contains(tableName)){
			return;
		}
		tableList.add(tableName);
	}
	
	/**
	 * 判断数据库中是否存在该表
	 * @param tableName
	 * @return
	 */
	public static boolean isTableExist(String tableName){
		return tableList.contains(tableName);
	}
}
